home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000378_fdc@columbia.edu_Wed Sep 1 12:32:19 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: GPS NMEA time reader
  5. Date: 1 Sep 2004 16:25:25 GMT
  6. Organization: Columbia University
  7. Lines: 39
  8. Message-ID: <slrncjbtvl.iqr.fdc@sesame.cc.columbia.edu>
  9. References: <ch4m71$koi$2@blue.rahul.net>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1094055925 5933 128.59.59.56 (1 Sep 2004 16:25:25 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 1 Sep 2004 16:25:25 GMT
  15. User-Agent: slrn/0.9.8.0 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15144
  17.  
  18. On 2004-09-01, dold@GPSXNMEAXt.usenet.us.com <dold@GPSXNMEAXt.usenet.us.com>
  19. wrote:
  20. : I have a commodity GPS (Garmin eTrex)
  21. : This produces NMEA strings at 4800 baud that I can read easily with
  22. : Kermit95.  
  23. :
  24. : A string that starts with $GPRMC contains the date and time in GMT.
  25. : The strings appear every few seconds, with a granularity of +/-2 seconds.
  26. :
  27. : What I want to do is read these with Kermit95 and use them to set the time
  28. : and date on a Windows PC.  The fact that it is GMT is a little bit of a
  29. : problem, and I thought someone else might already have done the work for
  30. : me.
  31. :
  32. : If the script also worked on MSDOS and Unix, that would be great.  On Unix,
  33. : I think the GMT offset is not a big deal, but I don't know what to do on
  34. : Windows/DOS.
  35. :
  36. C-Kermit and K95 include date/time functions that can handle GMT/localtime
  37. conversion:
  38.  
  39.   http://www.columbia.edu/kermit/ckermit80.html#x8.13
  40.  
  41. MS-DOS Kermit, no.  DOS itself (of course) has no knowledge of timezones.
  42.  
  43. : This is from 010904 September 1, 2004, at 13:40:58 GMT
  44. : Once satellite lock is found, the position appears
  45. : $GPRMC,134058,A,3850.1234,N,12230.5678,W,0.0,71.4,010904,15.0,E,A*0D
  46. :        ------                                     ------
  47. : Before satellite lock is found, there is no position, and no time.
  48. : The ",V," indicates that the fix is no good.
  49. : $GPRMC,,V,,,,,,,010904,15.0,E,N*00
  50. :
  51. You didn't say how to decode these, but if a time is in there, Kermit
  52. string and date/time functions can deal with it.  As to actually setting
  53. the system time, you'll need to invoke an external program (RUN or RUN START)
  54. with appropriate command line options and privileges.
  55.  
  56. - Frank